package com.example.gbtdemo.controller;

import com.example.gbtdemo.service.AppUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * app用户表 前端控制器
 * </p>
 *
 * @author 刘泽
 * @since 2023-01-13 12:21:05
 */
@RestController
@RequestMapping()
public class AppUserController {
    @Resource
    private AppUserService appUserService;

    @GetMapping("list")
    public Object list(Integer page, Integer size) {
        return appUserService.getpages(page, size);
    }

    @GetMapping("async")
    public void async() {
        appUserService.async();
    }


}
